package com.niiwoo.civet.trade.dto.request;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Range;

import com.niiwoo.civet.trade.dto.common.PeriodValue;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by zhangwanli on 2017/11/8.
 */
@Setter
@Getter
public class AutoInvestSettingRequestDTO implements Serializable {
//    private static final long serialVersionUID = 2077992740735784659L;

    @NotNull(message = "userId不能为空")
    private String userId;

    /**
     * 选中的标的类型 
     */
    private List<Integer> productTypes;
    /**
     * 选中的期限 
     */
    private List<PeriodValue> periodTypes;
    /**
     * 选中的还款方式 
     */
    private List<Integer> repaymentTypes;
    /**
     * 选中的利率 
     */
    private List<BigDecimal> ratetTypes;
    

    @Range(min = 100, max = 100000, message = "100 <= singleMaxInvestAmount <= 100000")
    private BigDecimal singleMaxInvestAmount;

    @NotNull(message = "minKeepBalance不能为空")
    private BigDecimal minKeepBalance;

    @NotNull(message = "isAutoUsePrize为空")
    private Byte isAutoUsePrize;

    @NotNull(message = "isMustUsePrize为空")
    private Byte isMustUsePrize;

    @NotNull(message = "useCouponMinInvestAmount为空")
    private BigDecimal useCouponMinInvestAmount;

}
